import request from '@/utils/request'

// 查询产品规格列表
export function createOrder(id) {
  return request({
    url: '/sell/payment/createOrder/'+id,
    method: 'get',
  })
}

// 查询支付订单列表
export function listPayment(query) {
    return request({
      url: '/sell/payment/list',
      method: 'get',
      params: query
    })
  }
  
  // 查询支付订单详细
  export function getPayment(paymentNo) {
    return request({
      url: '/sell/payment/' + paymentNo,
      method: 'get'
    })
  }
  
  // 新增支付订单
  export function addPayment(data) {
    return request({
      url: '/sell/payment',
      method: 'post',
      data: data
    })
  }
  
  // 修改支付订单
  export function updatePayment(data) {
    return request({
      url: '/sell/payment',
      method: 'put',
      data: data
    })
  }
  
  // 删除支付订单
  export function delPayment(paymentNo) {
    return request({
      url: '/sell/payment/' + paymentNo,
      method: 'delete'
    })
  }
  